<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : product.xsl
    Created on : August 25, 2012, 9:31 AM
    Author     : ThanhTai
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                >
    <xsl:output method="html"/>
    <xsl:template match="brands">
        <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="brand">
        <li>
            <xsl:element name="a">
                <xsl:attribute name="onclick">
                    <xsl:text>brandProducts(</xsl:text>
                    <xsl:value-of select="brandID"/>,"<xsl:value-of select="brandName"/>"
                    <xsl:text>);</xsl:text>
                </xsl:attribute>
                <xsl:text><xsl:value-of select="brandName"/></xsl:text>
            </xsl:element>
        </li>
    </xsl:template>
</xsl:stylesheet>
